//
//  SearchResultModel.m
//  CPU_Utility
//
//  Created by leonardo on 15/10/13.
//  Copyright © 2015年 leonardo. All rights reserved.
//

#import "SearchResultModel.h"
#import <MJExtension.h>
@implementation SearchResultModelData
@synthesize smallPic,id,manuId,manuName,name,otherName,pic,seriesId,seriesName,pro,userCommStar;
-(void)setValue:(id)value forUndefinedKey:(NSString *)key{
    if ([key isEqualToString:@"160x120Pic"]) {
        self.smallPic = value;
        
    }
}
- (instancetype)init
{
    self = [super init];
    if (self) {
        [SearchResultModelData setupReplacedKeyFromPropertyName:^NSDictionary *{
            return @{
                     @"smallPic":@"160x120Pic"
                     };
        }];
    }
    return self;
}

@end

@implementation SearchResultModel

- (instancetype)init
{
    self = [super init];
    if (self) {
        [SearchResultModel setupObjectClassInArray:^NSDictionary *{
            return @{
                     @"data":@"SearchResultModelData",
                     
                     };
        }];
    }
    return self;
}

@end